export function isPhoneNumber(phoneNumber) {
  var pattern = /^1[34578]\d{9}$/;
  return pattern.test(phoneNumber);
}

export function isIdCardNumber(idCardNumber) {
  var pattern = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
  return pattern.test(idCardNumber);
}